<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>读取作用域中的数据</title>
</head>
<body>
    test04
    <%
        // System.out.println(pageContext.getAttribute("name"));
        // System.out.println(request.getAttribute("age"));
        // System.out.println(session.getAttribute("sex"));
        // System.out.println(application.getAttribute("address"));

        Object obj = request.getAttribute("username");
        System.out.println(obj);

        Object obj2 = session.getAttribute("password");
        System.out.println(obj2);

        Object obj3 = application.getAttribute("hobby");
        System.out.println(obj3);

    %>
</body>
</html>
